﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Net.Mime.MediaTypeNames;

namespace CoreShop.Model
{
    public partial class sysuser
    {
        /// <summary>
        /// 序列
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public long id { get; set; }


        /// <summary>
        /// 序列
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "posUserId")]
        public long posUserId { get; set; }


        /// <summary>
        /// 店铺id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "corpId", IsNullable = true)]
        public Int32 corpId { get; set; }

        /// <summary>
        /// 门店id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "storeId", IsNullable = true)]
        public long storeId { get; set; }

        /// <summary>
        /// 账号
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "userName", IsNullable = true)]
        public String userName { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "phone", IsNullable = false)]
        public String phone { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "passWord", IsNullable = true)]
        public String passWord { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "nickName", IsNullable = true)]
        public String nickName { get; set; }

        /// <summary>
        /// 是否为员工账户(0管理员 1员工,2是股东) 
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "userType", IsNullable = true)]
        public Int32? userType { get; set; }


        /// <summary>
        /// 性别
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "sex", IsNullable = true)]
        public Int32? sex { get; set; }

        /// <summary>
        /// 邮箱 
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "email", IsNullable = true)]
        public String email { get; set; }


        /// <summary>
        /// 真实姓名
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "trueName", IsNullable = true)]
        public String trueName { get; set; }

        /// <summary>
        ///  机构id 
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "organizationId", IsNullable = true)]
        public Int32? organizationId { get; set; }

        /// <summary>
        /// 状态,0正常,1冻结,2审核中 
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "state", IsNullable = false)]
        public Int32 state { get; set; }

        /// <summary>
        ///是否删除
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "deleted", IsNullable = false)]
        public Boolean deleted { get; set; }


        /// <summary>
        ///  是否门店注册帐号
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "registerFlag", IsNullable = true)]
        public Int32? registerFlag { get; set; }

        /// <summary>
        /// 登录token
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "ccessToken", IsNullable = true)]
        public String ccessToken { get; set; }

        /// <summary>
        /// 登录时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "loginTime", IsNullable = true)]
        public DateTime loginTime { get; set; }

        /// <summary>
        /// 角色Ids
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "roleIds", IsNullable = true)]
        public String roleIds { get; set; }


        /// <summary>
        /// 修改时间截
        /// </summary>
        [SugarColumn(ColumnDescription = "修改时间截", IsNullable = true)]
        public System.Int64? modifyTime { get; set; }

        /// <summary>
        /// 角色Id
        /// </summary>
        [SugarColumn(ColumnDescription = "角色Id", IsNullable = true)]
        public System.Int64? posRoleId { get; set; }
    }
}
